<template>
  <div>
    <TypeNav />
    <ListContainer />
    <TodayRecommend />
    <Rank />
    <Like />
    <Floor v-for="floor in floorList" :key="floor.id" :list="floor"/>
    <Brand />
  </div>
</template>

<script>
import ListContainer from '@/page/Home/ListContainer'
import TodayRecommend from '@/page/Home/TodayRecommend'
import Rank from '@/page/Home/Rank'
import Like from '@/page/Home/Like'
import Floor from '@/page/Home/Floor'
import Brand from '@/page/Home/Brand'

import { mapState } from 'vuex'
export default {
  name: 'Home',
  components: {
    ListContainer,
    TodayRecommend,
    Rank,
    Like,
    Floor,
    Brand
  },
  mounted() {
    this.$store.dispatch('getFloorList')
    this.$store.dispatch('getUserInfo')
    },
  computed: {
    ...mapState({
      floorList: (state) => state.home.floorList
    })
  },
}
</script>

<style></style>
